package com.hotel.action;

import java.util.Map;

import com.hotel.constant.Msg;
import com.hotel.constant.Page;
import com.hotel.entity.Account;
import com.hotel.service.GuideService;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;

public class GuideAction implements Action {

	private GuideService guideService;
	
	private String page;
	
	@Override
	public String execute() throws Exception {
		Map<String, Object> session = ActionContext.getContext().getSession();
		session.put("guideList", guideService.showGuide((Account)session.get(Msg.USER)));
		page = Page.INDEX;
		return SUCCESS;
	}

	/* ####################################### */
	/* ########## getter/setter ########### */
	/* ####################################### */

	public void setGuideService(GuideService guideService) {
		this.guideService = guideService;
	}

	public String getPage() {
		return page;
	}

	

}
